package com.libo.usercenter.service;

import com.libo.usercenter.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author deeply
 * @author libo
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2025-05-09 18:38:52
 * <p>
 * 用户服务
 * @createDate 2025-05-09 18:38:52
 */
public interface UserService extends IService<User> {
    //先/ 再两个* 然后enter

    /**
     * 用户注册
     *
     * @param userAccount 用户账户
     * @param userPassword 用户密码
     * @param checkPassword 校验密码
     * @param userCode 用户编号
     * @return 新用户id
     */
    long userRegister(String userAccount, String userPassword, String checkPassword, String userCode);

    /**
     * @param userAccount
     * @param userPassword
     * @return 返回脱敏后的用户信息
     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);


    User getSafetyUser(User user);

    int userLogout(HttpServletRequest request);
}
